package net.tbao.product.feign;

import net.tbao.common.utils.R;
import net.tbao.product.feign.fallback.ProtectFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "taobao-seckill",fallback = ProtectFeignServiceFallBack.class)
public interface SeckillFeigService {
    @GetMapping("/sku/seckill/{skuId}")
     R skuSeckillInfo(@PathVariable("skuId") Long skuId);
}
